#!/bin/bash
# 修改配置文件
cd /etc/rabbitmq/conf.d/ && echo management_agent.disable_metrics_collector = false > management_agent.disable_metrics_collector.conf
# 启用 RabbitMQ 插件
rabbitmq-plugins enable --offline rabbitmq_management &&
rabbitmq-plugins enable --offline rabbitmq_prometheus

# 启动 RabbitMQ
docker-entrypoint.sh rabbitmq-server
